﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;


using System.Web.Mvc;
using Gman.Entity.Entities;
using System.Collections.Generic;

namespace Gman.WebApp.Models
{
    public class ActaNoConformeModel : BaseModel
    {

        public Guid? ID { get; set; }
        public string Action { get; set; }



        public ValidationBase Validator { get; set; }
        public List<KeyValuePair<string, string>> ValidationList = new List<KeyValuePair<string, string>>();
        public List<KeyValuePair<string, bool>> PropertyVisibilityList = new List<KeyValuePair<string, bool>>();

        public ToolBarModel ToolBar { get; set; }

        public ActaServNoConformeBE servicio { get; set; }
        public OrdenTrabajoBE ot { get; set; } 
        public ProveedorBE proveedor { get; set; }


        public SelectList ots { get; set; }
        public SelectList provedores { get; set; }
        public SelectList supervisores { get; set; }
        public SelectList tecnicos { get; set; } 
         
        public ActaNoConformeModel()
        {
            
            this.ID = Guid.NewGuid();
            this.proveedor = new ProveedorBE ();
            this.servicio = new ActaServNoConformeBE();
            this.ot = new OrdenTrabajoBE();
            this.ot.proveedor = new ProveedorBE();
            
        }

        public ActaNoConformeModel(ActaServNoConformeBE servicio)
        {
            //,ProveedorBE proveedor,OrdenTrabajoBE ot

            this.ID = Guid.NewGuid();

            this.proveedor = proveedor;
            this.servicio = servicio;
            this.ot = ot;
        }









    }


}
